var express = require('express');
var router = express.Router();
const questionCategoryController = require('../controllers/questionCategoryController');
const userController = require('../controllers/userController')

// 校验
router.use(userController.verifyToken)

router.post('/add', questionCategoryController.addQuestionCategory);
router.delete('/delete', questionCategoryController.deleteQuestionCategory);
router.put('/update', questionCategoryController.updateQuestionCategory);
router.get('/list', questionCategoryController.getQuestionCategoryList);
router.get('/listAll', questionCategoryController.getQuestionCategoryListAll);
router.get('/:id', questionCategoryController.getQuestionCategoryById);



module.exports = router;